package p270jp.pxv.android.model;

import java.io.Serializable;
import p216hn.DefaultConstructorMarker;
import p325m0.MutabilityOwnership;

/* compiled from: SearchBookmarkRange.kt */
/* renamed from: jp.pxv.android.model.SearchBookmarkRange */
/* loaded from: classes2.dex */
public final class SearchBookmarkRange implements Serializable {
    public static final int $stable = 0;
    public static final Companion Companion = new Companion(null);
    private static final String NONE_VALUE = "*";
    private final String bookmarkNumMax;
    private final String bookmarkNumMin;

    /* compiled from: SearchBookmarkRange.kt */
    /* renamed from: jp.pxv.android.model.SearchBookmarkRange$Companion */
    /* loaded from: classes2.dex */
    public static final class Companion {
        private Companion() {
        }

        public /* synthetic */ Companion(DefaultConstructorMarker eVar) {
            this();
        }

        public final SearchBookmarkRange createDefaultInstance() {
            return new SearchBookmarkRange(null, null, 3, null);
        }
    }

    public SearchBookmarkRange() {
        this(null, null, 3, null);
    }

    public SearchBookmarkRange(String str, String str2) {
        MutabilityOwnership.m3745m(str, "bookmarkNumMin");
        MutabilityOwnership.m3745m(str2, "bookmarkNumMax");
        this.bookmarkNumMin = str;
        this.bookmarkNumMax = str2;
    }

    private final Integer convertToRequestParameter(String str) {
        if (isNoneValue(str)) {
            return null;
        }
        return Integer.valueOf(str);
    }

    private final boolean isNoneValue(String str) {
        return MutabilityOwnership.m3749h(str, NONE_VALUE);
    }

    public final Integer convertBookmarkNumMaxToRequestParameter() {
        return convertToRequestParameter(this.bookmarkNumMax);
    }

    public final Integer convertBookmarkNumMinToRequestParameter() {
        return convertToRequestParameter(this.bookmarkNumMin);
    }

    @Override // java.lang.Object
    public boolean equals(Object obj) {
        SearchBookmarkRange searchBookmarkRange = (SearchBookmarkRange) obj;
        String str = this.bookmarkNumMin;
        MutabilityOwnership.m3747j(searchBookmarkRange);
        return MutabilityOwnership.m3749h(str, searchBookmarkRange.bookmarkNumMin) && MutabilityOwnership.m3749h(this.bookmarkNumMax, searchBookmarkRange.bookmarkNumMax);
    }

    public final String getBookmarkNumMax() {
        return this.bookmarkNumMax;
    }

    public final String getBookmarkNumMin() {
        return this.bookmarkNumMin;
    }

    public final boolean isRangeAll() {
        return isNoneValue(this.bookmarkNumMin) && isNoneValue(this.bookmarkNumMax);
    }

    public final boolean isRangePatternOver() {
        return !isNoneValue(this.bookmarkNumMin) && isNoneValue(this.bookmarkNumMax);
    }

    public /* synthetic */ SearchBookmarkRange(String str, String str2, int i, DefaultConstructorMarker eVar) {
        this((i & 1) != 0 ? NONE_VALUE : str, (i & 2) != 0 ? NONE_VALUE : str2);
    }
}
